package lesson02;

import java.io.FileWriter;
import java.io.IOException;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2023/02/13  9:36
 */
public class Demo04_FileWriter {
    public static void main(String[] args) throws IOException {
        FileWriter writer = new FileWriter("d:/temp/test/test.txt");
        writer.write("你好世界");
        writer.write("\n");
        writer.write("Hello world!!!");

        writer.flush();
        writer.close();
    }
}
